#{extends 'main.html' /}
#{set title: pageTitle + ' - History' /}

<div class="pagetitle">
History of ${pageTitle}
</div>

<table class="historytable">
%{ for(version in versions) { }%
<tr> 
    <td>${version.name}</td>
    <td><a href="@{Page.version}/${pageTitle}/${version.versionLabel}">${version.versionLabel}</a></td>
    <td>${String.format('%tF %<tT', version.lastModificationDate)}</td>
    <td>${version.lastModifiedBy}</td>
    <td>${version.checkinComment}</td>
</tr>
%{ } }%
</table>

<a href="@{Page.show}/${pageTitle}">Back to page</a>